package cn.yomigaeri.signal.controller;

import cn.yomigaeri.common.entity.vo.SignalVO;
import cn.yomigaeri.common.result.Result;
import cn.yomigaeri.signal.service.GetSignalService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: GetSignalController
 * @Package: cn.yomigaeri.signal.controller
 * @Description:
 * @Author Yomigaeri
 * @Create 2025/6/4 22:20
 * @Version 1.0
 */
@RestController
@RequiredArgsConstructor
public class GetSignalController {
    private final GetSignalService getSignalService;
    @GetMapping("/api/upload/signal/{carId}")
    public Result uploadSignal(@PathVariable Long carId) {
        SignalVO signalVO = getSignalService.getSignal(carId);
        return Result.success(signalVO);
    }
}
